/*
 * @Author: Administrator 843338961@qq.com
 * @Date: 2022-07-02 14:29:49
 * @LastEditors: Administrator 843338961@qq.com
 * @LastEditTime: 2022-07-02 18:03:53
 * @FilePath: \mall\src\store\mutations.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import types from './mutations_types';
export default {
    [types.ADD_NEWITEM](state, payload) { 
        state.cartItems.push(payload);
        console.log(state.cartItems);
    },
    [types.ADD_COUNT](state, payload) { 
        payload.count++;
        console.log(state.cartItems);
    }
}